package com.hangsu.train.common.utils;

import java.util.Calendar;

/**
 * @author lyy
 * @Date 2021/7/15
 */
public class FilePathUtils {

    public static String genPath() {
        Calendar calendar = Calendar.getInstance();
        String year = String.format("%04d", calendar.get(Calendar.YEAR));
        String month = String.format("%02d", calendar.get(Calendar.MONTH) + 1);
        String day = String.format("%02d", calendar.get(Calendar.DAY_OF_MONTH));
        String path ="/" + year + "/" + month + "/" + day + "/" ;
        return path;
    }
}
